    	$("#cal").fullCalendar({
    	//header: { left: "", center: "", right: "prev, today, next" },
    	events: "/devdocs/timeTracker/getEvents",
        dayClick: function(date, allDay, jsEvent, view) {
        	window.location = "/devdocs/timeTracker/showTime?date="+date.getTime()+"&person_id="
        },
        editable: true,
        eventDrop: function(event,dayDelta,minuteDelta,allDay,revertFunc) {


            $("#dragDlg").dialog({
      		  autoOpen: true,
      		  title: 'Please confirm ...',
    		  width: 300,
    		  height:125,
    		  position: ['right','top'],
    		  buttons: {
	    		  "Move": function() {
		    		  window.location=event.url + '&_action=move&delta=' + dayDelta;
	    		  	//$(this).dialog("close");
	    		  },
	    		  "Copy": function() {
	    			  window.location=event.url + '&_action=copy&delta=' + dayDelta;
		    		  //$(this).dialog("close");
		    		  },	    		  
	    		  "Cancel": function() {
	    		  	$(this).dialog("close");
	    		  }
	    		 }
               });
            alert('');
               return;


        },
    	height: "200",
    	width: "200",
    	aspectRatio: "3"
    	});
    	$('#cal').dialog({
    		  autoOpen: true,
    		  width: 450,
    		  height:400,
    		  position: ['right','bottom'],
    		  buttons: {
    		  "Ok": function() {
    		  $(this).dialog("close");
    		  },
    		  "Cancel": function() {
    		  $(this).dialog("close");
    		  }
    		  }
   		  }); 
  